﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<div class="modal-dialog x-modal-dialog" style="width: 450px; margin-top: 100px;">
  <div class="modal-content">

    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal">
        <span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
      </button>
      <h4 class="modal-title">File&nbsp;-&nbsp;Upload</h4>
    </div>

    <form class="form-horizontal ihg-form" role="form" method="POST" enctype="multipart/form-data" action="${ctx.host}/upload" data-validate="true">
      
      <div class="modal-body">
        <div class="form-group ihg-form-group">
          <div class="input-group col-xs-10 col-xs-offset-1">
            <div class="fileUpload btn btn-danger btn-shadow btn-shadow-danger ms-btn input-group-addon">
              <span style="color: #fff;">选择文件</span>
              <input id="uploadBtn" type="file" class="upload" accept="image/*, .doc, .docx, .pdf" name="file" />
            </div>
            <input id="uploadFile" class="form-control" name="data" data-validate="required" disabled placeholder="请点击左侧按钮选择文件" accept="image/*, .doc, .docx, .pdf" />
          </div>
        </div>
      </div>
      
      <div class="modal-footer">
        <button type="submit" class="btn btn-success btn-shadow btn-shadow-success x-btn">Commit</button>
        <button type="button" class="btn btn-default btn-shadow btn-shadow-default x-btn" data-dismiss="modal">Cancel</button>
      </div>
    </form>
  </div>
  
</div>
